package com.template.utlis;


import com.alibaba.fastjson2.JSONObject;
import com.template.entity.FeiShuPostContent;
import com.template.entity.FeiShuTextContent;

/**
 * @author wangqi
 * @date 2024-01-08 16:51
 */
public enum FeiShuMsgTypeEnum {
    TEXT("text", FeiShuTextContent.class),
    POST("post", FeiShuPostContent.class),
    CARD("interactive", JSONObject.class);
    private String msgType;
    private Class<?> msgClass;

    FeiShuMsgTypeEnum(String msgType, Class<?> msgClass) {
        this.msgType = msgType;
        this.msgClass = msgClass;
    }

    public String getMsgType() {
        return msgType;
    }

    public Class<?> getMsgClass() {
        return msgClass;
    }
}
